<template>
    <div class="b">
        <div class="z-main">
            <div class="p"></div>
            <div class="txt">设备故障</div>
        </div>
        <Vue3SeamlessScroll :list="props.data" class="scroll" :step="0.2">
            <div class="item" v-for="(item, index) in props.data" :key="index">
                <div class="left">
                    <div class="num">{{ item.title }}</div>
                    <div class="tel">{{ item.keywords }}</div>
                </div>
                <!-- {{ item.state == 1 ? '已拆除' : '未铲除' }} -->
                <div class="right">{{ item.description }}</div>
            </div>
        </Vue3SeamlessScroll>

    </div>

</template>

<script setup>
import { ref } from 'vue';
import { Vue3SeamlessScroll } from "vue3-seamless-scroll";
const props = defineProps({
    data: Object
})


</script>
<style lang="scss" scoped>
.scroll {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
}

.b {
    margin-top: 30px;
    padding-bottom: 30px;

}

.scroll {
    padding-right: 30px;
    margin-top: 20px;

    .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: linear-gradient(270deg, rgba(36, 186, 255, 0.08) 0%, rgba(36, 186, 255, 0) 100%);
        box-shadow: inset 0px 0px 30px 0px rgba(255, 0, 0, 0.1);
        border-radius: 5px;
        margin-bottom: 10px;

        .right {
            font-family: Source Han Sans, Source Han Sans;
            font-weight: 400;
            font-size: 12px;
            color: #FFFFFF;
        }

        .left {

            .num {
                font-family: Source Han Sans, Source Han Sans;
                font-weight: 500;
                font-size: 18px;
                color: #EBF3FF;
            }

            .tel {
                font-family: Source Han Sans, Source Han Sans;
                font-weight: 400;
                font-size: 14px;
                color: #9DA9B9;
            }
        }

    }
}

.z-main {
    background: url(../../../assets/image/t.png) no-repeat;
    background-size: cover;
    width: 455px;
    height: 34px;
    display: flex;
    align-items: center;

    .p {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-right: 10px;
        background-color: #fff;
        margin-left: 50px;
    }

    .txt {
        font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
        font-weight: 900;
        font-size: 18px;
        color: #FFFFFF;
    }
}
</style>